package cn.ranyue.basic.mapper;

import cn.ranyue.basic.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface BaseMapper<T> {
    void add(T t);
    void delete(Long id);
    void update (T t);
    T loadOne(Long id);

    List<T> loadAll();
    /*分页查询*/
    /*查询总条数*/
    Integer queryCount(BaseQuery tQuery);
    /*查询所有数据类型*/
    List<T> quertList(BaseQuery tQuery);
    void patchDelete(List<Long> ids);
}
